home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 February / february_2000.iso / site building / GoLive 4.0 Tryout / data1.cab / Apps / Modules / JScripts / Actions / Multimedia / ShowHide.action < prev    next >
Encoding:
Text File  |  1999-08-05  |  4.3 KB  |  111 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <meta name="generator" content="Adobe GoLive 4">
  6.         <title>ShowHide Action</title>
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">ShowHide Action</font><font>
  12.             <hr>
  13.             </font></center>
  14.         <p><font>
  15.         <csactionclass name="ShowHide" function="CSShowHide" nsversion="4" ieversion="4"> </font></p>
  16.         <p><font>
  17.         <csactionparam name="layer" type="GLActionLayerParam"> </font></p>
  18.         <p><font>
  19.         <csactionparam name="mode" type="GLActionEnumParam"> </font></p>
  20.         <p><font>
  21.         <csactionenum name="Hide" value="0">
  22.          </font></p>
  23.         <p><font>
  24.         <csactionenum name="Show" value="1">
  25.          </font></p>
  26.         <p><font>
  27.         <csactionenum name="Toggle" value="2">
  28.          </font></p>
  29.         <p><font></csactionparam>
  30.          </font></p>
  31.         <p><font></csactionclass>
  32.          </font></p>
  33.         <p>
  34.         <hr>
  35.         </p>
  36.         <p>IE Functions Script
  37.         <script language="JavaScript1.2" src="../../GlobalScripts/IE.scpt" cyberversion="N1.2"></script>
  38.         </p>
  39.         <p>StyleVis Functions Script
  40.         <script language="JavaScript1.2" src="../../GlobalScripts/StyleVis.scpt" cyberversion="N1.2"></script>
  41.         </p>
  42.         <p>ShowHide Action Main Script<font>
  43.         <script language="JavaScript1.2" cyberversion="N1.2"><!--
  44. function CSShowHide(action) {
  45.     if (action[1] == '') return;
  46.     var type=action[2];
  47.     if(type==0) CSSetStyleVis(action[1],0);
  48.     else if(type==1) CSSetStyleVis(action[1],1);
  49.     else if(type==2) { 
  50.         if (CSGetStyleVis(action[1]) == 0) CSSetStyleVis(action[1],1);
  51.         else CSSetStyleVis(action[1],0);
  52.     }
  53. }
  54. // -->
  55.         </script>
  56.         </font></p>
  57.         <p>
  58.         <hr>
  59.         </p>
  60.         <p> </p>
  61.         <p><font>
  62.         <table cool width="253" height="153" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  63.             <tr height="1" cntrlrow>
  64.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  65.                 <td width="10" height="1"><spacer type="block" width="10" height="1"></td>
  66.                 <td width="80" height="1"><spacer type="block" width="80" height="1"></td>
  67.                 <td width="160" height="1"><spacer type="block" width="160" height="1"></td>
  68.             </tr>
  69.             <tr height="8">
  70.                 <td width="1" height="8"><spacer type="block" width="1" height="8"></td>
  71.                 <td width="10" height="8"><spacer type="block" width="10" height="8"></td>
  72.                 <td width="80" height="8"><spacer type="block" width="80" height="8"></td>
  73.                 <td width="160" height="8"><spacer type="block" width="160" height="8"></td>
  74.             </tr>
  75.             <tr height="3">
  76.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  77.                 <td width="10" height="3"><spacer type="block" width="10" height="3"></td>
  78.                 <td width="80" height="3"><spacer type="block" width="80" height="3"></td>
  79.                 <td width="160" height="29" colspan="1" rowspan="2" valign="top" align="left" xpos="90">
  80.                     <csactioncntrl name="layer" x="90" y="8" width="140" height="18" alignx="scale" aligny="top">
  81.                 </td>
  82.             </tr>
  83.             <tr height="26">
  84.                 <td width="1" height="26"><spacer type="block" width="1" height="26"></td>
  85.                 <td width="10" height="26"><spacer type="block" width="10" height="26"></td>
  86.                 <td width="80" height="26" colspan="1" rowspan="1" valign="top" align="left" xpos="10">
  87.                     <csactioncntrl type="StaticText" value="Floating Box" x="10" y="11" width="70" height="17" alignx="left" aligny="top">
  88.                 </td>
  89.             </tr>
  90.             <tr height="3">
  91.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  92.                 <td width="10" height="3"><spacer type="block" width="10" height="3"></td>
  93.                 <td width="80" height="3"><spacer type="block" width="80" height="3"></td>
  94.                 <td width="160" height="113" colspan="1" rowspan="2" valign="top" align="left" xpos="90">
  95.                     <csactioncntrl name="mode" x="90" y="37" width="140" height="18" alignx="scale" aligny="top">
  96.                 </td>
  97.             </tr>
  98.             <tr height="110">
  99.                 <td width="1" height="110"><spacer type="block" width="1" height="110"></td>
  100.                 <td width="10" height="110"><spacer type="block" width="10" height="110"></td>
  101.                 <td width="80" height="110" colspan="1" rowspan="1" valign="top" align="left" xpos="10">
  102.                     <csactioncntrl type="StaticText" value="Mode" x="10" y="40" width="39" height="16" alignx="left" aligny="top">
  103.                 </td>
  104.             </tr>
  105.         </table>
  106.         </font></p>
  107.         <p> 
  108.     </body>
  109.  
  110. </html>
  111.